﻿@model WebGioiThieu.Models.CreateModel
@{
    this.AjaxContext();
    ViewBag.Title = "Edit \"" + Model.UserName + "\"";
}
@using (Html.BeginForm())
{ 
    <fieldset>
        <legend>Edit User</legend>
        @Html.HiddenFor(m => m.UserName)
        <div class="editor-label">
            @Html.LabelFor(m => m.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => m.UserName, new { disabled = "disabled" })
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => m.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => m.Password)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.ConfirmPassword)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.ConfirmPassword)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Activated)
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(m => m.Activated)
        </div>
        <div class="editor-submit">
            <input type="submit" value="Save" id="add-submit" />
        </div>
        <br />
    </fieldset>
    Html.RenderPartial("RolesBox", (IEnumerable<WebGioiThieu.Models.aspnet_Roles>)ViewBag.Roles);
}
<br />
@Html.ActionLink("Back", "Index")